package model;


public class Session {
	
	private String name;
	private String username;
	private String circuit;
	private float minTime;
	private float avgTime;
	private float avgTopSpeed;
	private float avgAvgSpeed;
	private float avgMinSpeed;
	
	public Session() {
		super();
	}

	/**
	 * 
	 * @return
	 */
	public String getName() {
		return name;
	}

	/**
	 * 
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 
	 * @return
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * 
	 * @param username
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * 
	 * @return
	 */
	public String getCircuit() {
		return circuit;
	}

	/**
	 * 
	 * @param circuit
	 */
	public void setCircuit(String circuit) {
		this.circuit = circuit;
	}

	/**
	 * 
	 * @return
	 */
	public float getMinTime() {
		return minTime;
	}

	/**
	 * 
	 * @param minTime
	 */
	public void setMinTime(float minTime) {
		this.minTime = minTime;
	}

	/**
	 * 
	 * @return
	 */
	public float getAvgTime() {
		return avgTime;
	}

	/**
	 * 
	 * @param avgTime
	 */
	public void setAvgTime(float avgTime) {
		this.avgTime = avgTime;
	}

	/**
	 * 
	 * @return
	 */
	public float getAvgTopSpeed() {
		return avgTopSpeed;
	}

	/**
	 * 
	 * @param avgTopSpeed
	 */
	public void setAvgTopSpeed(float avgTopSpeed) {
		this.avgTopSpeed = avgTopSpeed;
	}

	/**
	 * 
	 * @return
	 */
	public float getAvgAvgSpeed() {
		return avgAvgSpeed;
	}

	/**
	 * 
	 * @param avgAvgSpeed
	 */
	public void setAvgAvgSpeed(float avgAvgSpeed) {
		this.avgAvgSpeed = avgAvgSpeed;
	}

	/**
	 * 
	 * @return
	 */
	public float getAvgMinSpeed() {
		return avgMinSpeed;
	}

	/**
	 * 
	 * @param avgMinSpeed
	 */
	public void setAvgMinSpeed(float avgMinSpeed) {
		this.avgMinSpeed = avgMinSpeed;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((name == null) ? 0 : name.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Session other = (Session) obj;
		if (name == null) {
			if (other.name != null)
				return false;
		} else if (!name.equals(other.name))
			return false;
		return true;
	}
	
}
